/*
 * @Author: YYJ
 * @Date: 2023-12-16 14:40:39
 * @Description: 
 * @FilePath: \lgd-admin\src\services\operation\member\index.tsx
 */
import { request } from '@umijs/max';

export interface OperationMemberParams {
  mobile?: string;
  gender?: string;
  current?: number;
  pageSize?: number;
}

export interface OperationMemberItem {
  id: number;
  inAmount: number;
  outAmount: number;
  balance: number;
  opType: 'IN' | 'OUT';
}

/** 查询工资列表 POST /admin/operationMember/queryList */
export async function queryList(body: OperationMemberParams) {
  return request<API.LgdTable>('/admin/operationMember/queryList', {
    method: 'POST',
    data: body
  });
}

/** 查询工资列表 POST /admin/operationMember/add */
export async function addUpdate(body: OperationMemberItem) {
  return request<API.LgdResult>('/admin/operationMember/addUpdate', {
    method: 'POST',
    data: body
  });
}
/** 查询工资列表 POST /admin/operationMember/add */
export async function memberOp(body: OperationMemberItem) {
  return request<API.LgdResult>('/admin/operationMember/memberOp', {
    method: 'POST',
    data: body
  });
}